<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="Veterinaria.modelo.Persona"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.22.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>

<title>Reporte de Doctor - petVida - Veterinaria</title>
<style type="text/css">
<!--
.Estilo1 {	font-family: Tahoma;
	font-weight: bold;
	font-size: 18px;
}
.Estilo4 {font-family: Tahoma; font-weight: bold; font-size: 12px; }
.Estilo5 {font-family: Tahoma;  font-size: 10px;}
-->
</style>
</head>

<body>
<table width="1124" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><p align="left"><img src="img/logo3.jpg" alt="s" width="472" height="185" /></p></td>
    <td><p>&nbsp;</p>
        <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p align="right" class="Estilo1">Reporte Doctor  </p></td>
  </tr>
  <tr bgcolor="#CCCCCC">
    <td height="10" colspan="2"><div align="right"></div></td>
  </tr>
</table>
<%@include file="navegador.jsp" %> 
<form name="form1" method="post" action="ReporteDoctorServlet">
      <table width="263" border="0" align="center">
        <tr class="Estilo4">
          <td width="51"><div align="center">Nombre</div></td>
          <td width="24"><div align="center">Apellido</div></td>
          <td width="11"><div align="center">Usuario</div></td>
          <td width="11"><div align="center">Ruc</div></td>
          <td width="12"><div align="center">Estado</div></td>
        </tr>
        <tr>
          <td><label>
            <input name="txtNombre" type="text" id="txtNombre" />
          </label></td>
          <td><label>
            <input name="txtApellido" type="text" id="txtApellido" />
          </label></td>
          <td><label>
            <input name="txtUsuario" type="text" id="txtUsuario" />
          </label></td>
           <td><label>
            <input name="txtRuc" type="text" id="txtRuc" />
          </label></td>
          <td><select name="select">
              <option></option>
              <option value="1">Activo</option>
              <option value="0">Desactivo</option>
            </select>
              </label></td>
        </tr>
        <tr>
          <td colspan="4"><div align="center">
              <input type="submit" name="Submit" value="Buscar" />
          </div></td>
        </tr>
      </table>
        </form>
      <table width="819" border="0" align="center">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><table width="819" border="0" align="center">
            <tr bgcolor="#CCCCCC" class="Estilo4">
              <td><div align="center">idDoctor</div></td>
              <td><div align="center">Nombre</div></td>
              <td><div align="center">Apellido</div></td>
              <td><div align="center">Email</div></td>
              <td><div align="center">Tel&eacute;fono</div></td>
              <td><div align="center">Celular</div></td>
              <td><div align="center">Sexo</div></td>
              <td><div align="center">Usuario</div></td>
              <td><div align="center">Estado</div></td>
            </tr>
            <%@page import="java.util.*, Veterinaria.modelo.Persona" %>
			<%
			Collection<Persona> arreglo = (ArrayList<Persona>)request.getAttribute("personas");
			if(arreglo != null) { 
			int i = 1;
			for(Persona x : arreglo) {
			%>  
			  <tr class="Estilo5">
			    <td><div align="center" >
			      <% out.print(x.getCodigo_persona()); %>
			      </div></td>
			    <td><% out.print(x.getNombre_persona()); %></td>
			    <td><% out.print(x.getApellido_persona()); %></td>
			    <td><% out.print(x.getEmail_persona()); %></td>
			    <td><% out.print(x.getTelefono_fijo()); %></td>
			    <td><% out.print(x.getTelefono_celular()); %></td>
			    <td><div align="center">
			      <% out.print(x.getSexo()); %>
			      </div></td>
			    <td><% out.print(x.getoDoctor().getUsuario_sistema()); %></td>
			    <% String estado;
			    if( x.getEstado().toString().equals("1") ){
			    	estado = "Activo";
			    }
			    else{
			    	estado = "Desactivo";	
			    }
			    %>
			    <td><div align="center"><% out.print(estado); %></div></td>
			       <td></td>
			       
			     <td>&nbsp;</td>
			     <td>&nbsp;</td>
			  </tr>
			<% }  
			  } %>
          </table></td>
        </tr>
      </table>
      <p>&nbsp;</p>
    <label></label></td>
  </tr>
  <tr bgcolor="#CCCCCC">
    <td colspan="2" bgcolor="#CCCCCC"><div align="center"><span class="Estilo4">Desarrollado por Grupo ThunderBolt<img src="img/Rayo.png" alt="s" width="28" height="21" /></span> </div></td>
  </tr>
</table>
<p></p>
</body>
</html>
